package com.yr.ryjk.festival.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.yr.ryjk.common.Constant;

public class Festival {
    private String id;

    private String festivalName;

    private String picUrl;

    @DateTimeFormat(pattern=Constant.DATE_FORMAT_YEAR)
    private Date startDate;
    
    @DateTimeFormat(pattern=Constant.DATE_FORMAT_YEAR)
    private Date endDate;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getFestivalName() {
        return festivalName;
    }

    public void setFestivalName(String festivalName) {
        this.festivalName = festivalName == null ? null : festivalName.trim();
    }

    public String getPicUrl() {
        return picUrl;
    }

    public void setPicUrl(String picUrl) {
        this.picUrl = picUrl == null ? null : picUrl.trim();
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }
}